module.exports = {
  apps: [{
    name: 'x-synergy-api',
    script: 'src/app.js',
    cwd: '/xos/api',
    instances: 1,
    autorestart: true,
    watch: false,
    max_memory_restart: '1G',
    env: {
      NODE_ENV: 'production',
      PORT: 5420,
      JWT_SECRET: 'xSynergyOs_JWT_Secret_Key_2024_Production',
      AUTO_SYNC: 'false'
    },
    env_production: {
      NODE_ENV: 'production',
      PORT: 5420,
      JWT_SECRET: 'xSynergyOs_JWT_Secret_Key_2024_Production',
      AUTO_SYNC: 'false'
    },
    log_file: '/var/log/pm2/x-synergy-api.log',
    out_file: '/var/log/pm2/x-synergy-api-out.log',
    error_file: '/var/log/pm2/x-synergy-api-error.log',
    log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
    merge_logs: true
  }]
}
